﻿using MyCommunity.Models;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

public class PasswordForgottenModel
{
    [Required]
    [DataType(DataType.EmailAddress)]
    [Display(Name = "Email address")]
    [RegularExpression(@"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$",
    ErrorMessage = "Invalid email address.")]
    public string Mail { get; set; }
}